// components/popup/selfLifting/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tipTitle: {
      type: String,
      value: ''
    },
    tipDesc: {
      type: String,
      value: ''
    },
    isRemind: {
      type: Boolean,
      value: false
    },
    show: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    checkedIcon: {
      active: '/images/icon/icon_check_active.png',
      normal: '/images/icon/icon_check_inactive.png',
      normalEmpty: '/images/icon/icon_check_inactive_empty.png'
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 关闭
    onClose () {
      this.triggerEvent('close',this.data.isRemind)
    },
    // 提醒
    onRemind (event) {
      this.setData({
        isRemind: event.detail
      });
    },
    // 确认
    onConfirm () {
      this.triggerEvent('confirm',this.data.isRemind)
    }
  }
});
